package com.binc.testspring.common.handler;

import com.binc.testspring.common.annotation.DictCode;

public class DictCodeProperty {
    private String name;
    private DictCode dictCode;

    public DictCodeProperty() {
    }

    public String getName() {
        return this.name;
    }

    public DictCode getDictCode() {
        return this.dictCode;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDictCode(DictCode dictCode) {
        this.dictCode = dictCode;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DictCodeProperty)) {
            return false;
        } else {
            DictCodeProperty other = (DictCodeProperty)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$dictCode = this.getDictCode();
                Object other$dictCode = other.getDictCode();
                if (this$dictCode == null) {
                    if (other$dictCode != null) {
                        return false;
                    }
                } else if (!this$dictCode.equals(other$dictCode)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof DictCodeProperty;
    }

    @Override
    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        Object $dictCode = this.getDictCode();
        result = result * 59 + ($dictCode == null ? 43 : $dictCode.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "DictCodeProperty(name=" + this.getName() + ", dictCode=" + this.getDictCode() + ")";
    }
}
